# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=slick-greeter
pkgver=2.0.1
pkgrel=0
pkgdesc="a slick-looking LightDM greeter"
url="https://github.com/linuxmint/slick-greeter"
# s390x: mainframe
arch="all !s390x"
license="GPL-3.0-only"
makedepends="automake autoconf libtool libcanberra-dev lightdm-dev gnome-common vala xapp-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/slick-greeter/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e56bd4c7bc06ae12363328a00bb54e4e8f306e37e4d56d86ae1d232cf4f1a80e0edd256d526e13b0a43b3c9adfc610a4539cd43e22ab3a34774e9546610bd56c  slick-greeter-2.0.1.tar.gz
"
